//
//  IllegalQueryViewController.m
//  Car
//
//  Created by 何晓文 on 15/9/17.
//  Copyright (c) 2015年 朱鸿儒. All rights reserved.
//

#import "IllegalQueryViewController.h"
#define kIllegalURL @"http://m2.weizhang8.cn/"

@interface IllegalQueryViewController ()<UIWebViewDelegate>
@property (nonatomic,strong) UIWebView *web;
@end

@implementation IllegalQueryViewController
- (void)loadView {
	[ProgressHUD show:nil];
	NSURL *url = [NSURL URLWithString:kIllegalURL];
	NSURLRequest *request = [NSURLRequest requestWithURL:url];
	self.web = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds];
	[self.web loadRequest:request];
	self.view = self.web;

}
- (void)viewDidLoad {
    [super viewDidLoad];
	self.web.delegate = self;

}

- (void)webViewDidFinishLoad:(UIWebView *)webView {

	[ProgressHUD showSuccess:nil];
}
- (void)viewWillDisappear:(BOOL)animated {
	[super viewWillDisappear:YES];
	[ProgressHUD dismiss];
	
}
@end
